<!DOCTYPE html>
<html>
<?php
include_once '../model/testimoni.php';
?>
<head>
<title></title>
<link href="View/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="View/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link  href="View/bootstrap/js/bootstrap.min.js" rel="stylesheet"/>
<script type="text/javascript" src="View/bootstrap/js/jquery-latest.js"></script>
</head>
<body>
<div>
<pre><h4><center>Testimoni</center></h4></pre>
	<?php 
	$testimoni = new ModelTestimoni();
	$testi2 = $testimoni-> getTestimoni();
	if (!empty($testi2))
	{
		foreach ($testi2 as $id_testimoni => $testi2)
		{
			echo 
			'<h4><a href="../index.php?testimoni='.$testi2->id_user.'">'.$testi2->judultestimoni.'</a></h4>
			'.$testi2->isitestimoni.'          
			<h6> dikirimkan oleh '.$testi2->nama_pengirim.'</h6><br/>
			';
		}
	}
	?>
</div>
<?php
	echo '<a href="form_testimoni.php" class="pull-right" >Tambah Testimoni</a><br/>
	&nbsp;' ;
?>
</body>
</html>